package com.qcby.service.Impl;

import com.qcby.dao.CourseReadyMapper;
import com.qcby.entity.CourseReady;
import com.qcby.service.CourseReadyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("courseReadyService")
public class CourseReadyServiceImpl implements CourseReadyService {
    @Autowired
    private CourseReadyMapper courseReadyMapper;
    private Integer id;

    @Override
    public int insert(Integer course, Integer student) {
        return 0;
    }

//    @Override
//    public int selectReadyCourse() {
//        return courseReadyMapper.selectReadyCourse();
//    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return courseReadyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteById(Integer planCourse_id, Integer stu_account) {
        return courseReadyMapper.deleteById(planCourse_id,stu_account);
    }

//    @Override
//    public int deleteById(Integer course_no) {
//        return courseReadyMapper.deleteById(course_no);
//    }

    @Override
    public int selectReadyCourse() {
        return courseReadyMapper.selectReadyCourse();
    }

    @Override
    public int insertInToCourseRe(Integer teacherPlanCourse_id, Integer stu_account) {
        return courseReadyMapper.insertInToCourseRe(teacherPlanCourse_id,stu_account);
    }

    @Override
    public List<CourseReady> selectCourseNo(Integer stu_account, Integer planCourse_id) {
        return courseReadyMapper.selectCourseNo(stu_account,planCourse_id);
    }

    @Override
    public List<CourseReady> selectStart(Integer stu_account, String course_start) {
        return courseReadyMapper.selectStart(stu_account,course_start);
    }

}
